/**
 *@author：yanghx
 *@Date: 2020/2/7 19:57
 */
import React from 'react';
import {StyleSheet} from 'react-native';
// 现在PropTypes不在react中
import PropTypes from 'prop-types';
import {Provider} from '@ant-design/react-native';
import DrawerPage from '@page/drawer/DrawerPage';
import TabBarPage from '@page/tabbar/TabBarPage';

export default class HomePage extends React.Component {
  constructor(props) {
    super(props);
    this.state = {};
  }

  static propTypes = {name: PropTypes.string};
  static navigationOptions = {
    headerShown: false,
  };

  render() {
    return (
      <Provider>
        <DrawerPage navigation={this.props.navigation}>
          <TabBarPage/>
        </DrawerPage>
      </Provider>
    );
  }
}

const styles = StyleSheet.create({});
